/* 全局样式 */
body {
    font-familyMicrosoft YaHei', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #fff !important;
}

/* 搜索框样式 */
.search-form {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0 0 5px 5px;
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-results a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
}

.search-results a:hover {
    background-color: #f8f9fa;
}

/* 轮播图样式 */
.carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 20px;
    bottom: 50px;
}

/* 分类卡片样式 */
.specialty-category {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.specialty-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 产品卡片样式 */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 5px 15px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 价格样式 */
.price {
    color: #dc3545;
    font-size: 1.1rem;
}

/* 购物车按钮样式 */
#cartButton position: relative;
}

.cart-count {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0 5px;
    font-size: 0.8rem;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* 购物车侧边栏样式 */
.offcanvas-header {
    border-bottom: 1px solid #dee2e6;
}

.cart-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #dc3545;
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
: 1px solid #dee2e6;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #dee2e6;
    margin: 0 5px;
}

.remove-item {
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
}

/* 页脚样式 */
footer {
    background-color: #343a40 !important;
}

.social-icons a {
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #0d6efd !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 20px;
        padding: 10px;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
    }
}

/* 飞入图片样式 */
.flying-img {
    pointer-events: none;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 购物车图标缩放动画 */
.cart-bump {
    animation: cartBump 300ms ease-out;
}

@keyframes cartBump {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}